package com.nachuan.pdd.internal;


import com.pdd.pop.sdk.http.PopAccessTokenClient;
import com.pdd.pop.sdk.http.PopClient;
import com.pdd.pop.sdk.http.PopHttpClient;

/**
 * 拼多多客户端
 *
 * @author : 古书柳
 * @date : 06 : 02 : 2025/2/6
 */
public class PddClient {
	private static final String clientId = "090bb23d91e44e4cbc67f2d4bb29f877";
	private static final String clientSecret = "1e2fcab0fb6143792b6852a9f01670ac1033a2b5";
	private volatile static PopClient popClient;
	private PddClient() {
	}

	public static PopClient getSingleton() {
		if (popClient == null) {
			synchronized (PopClient.class) {
				if (popClient == null) {
					popClient = new PopHttpClient(clientId, clientSecret);
				}
			}
		}
		return popClient;
	}

	public PopAccessTokenClient getInstance() {
		return new PopAccessTokenClient(clientId, clientSecret);
	}
}
